<?php if($profiles) {
    
   ?> <img src="https://graph.facebook.com/<?php echo $this->session->read('userid');; ?>/picture"><br/><?php
       
        echo $this->session->read('username').'<br/>';
        echo $this->session->read('bio').'<br/>';
        echo $this->session->read('gender').'<br/>';
       
} else { ?>
<div class="list-group">
    <div class="users-form list-group-item">
    <?php echo $this->Form->create('User'); ?>
            <fieldset>
                    <legend><?php echo __('Edit User'); ?></legend>
                    <div id="form-fill">
            <?php
                    echo $this->Form->input('id', array('class'=>'form-control'));
                    echo $this->Form->input('first_name', array('class'=>'form-control'));
                    echo $this->Form->input('last_name', array('class'=>'form-control'));
                    echo $this->Form->input('username', array('class'=>'form-control'));
                    echo $this->Form->input('password', array('value'=>"", 'class'=>'form-control'));
                    echo $this->Form->input('confirm', array('type'=>'password', 'class'=>'form-control'));
                    echo $this->Form->input('email', array('class'=>'form-control'));
                    echo $this->Form->input('phone', array('class'=>'form-control'));
                    echo $this->Form->input('location_id', array('class'=>'form-control'));

            ?>
                        <?php echo $this->Form->end(__('Submit')); ?>
                    </div>
            </fieldset>
    </div>
</div>
<?php } ?>